package Dj;

import java.util.Scanner;

public class Dj04 {
	public static void main(String[] args) {
		int[][] arr = new int[5][6];
		
		Scanner can =new Scanner(System.in);
		
		for (int i = 0; i < arr.length; i++) {
				System.out.println("请输入第"+(i+1)+"员工的编号");
			    arr[i][0]=can.nextInt();
			    System.out.println("请输入第"+(i+1)+"员工的忘记打卡次数");
			    arr[i][1]=can.nextInt();
			    System.out.println("请输入第"+(i+1)+"员工的迟到次数");
			    arr[i][2]=can.nextInt();
			    System.out.println("请输入第"+(i+1)+"员工的早退次数");
			    arr[i][3]=can.nextInt();
			    System.out.println("请输入第"+(i+1)+"员工的矿工次数");
			    arr[i][4]=can.nextInt();	
		}
		for (int i = 0; i < arr.length; i++) {
            int sum = 0;
			sum += arr[i][1]*10;
			sum += arr[i][2]*20;
			sum += arr[i][3]*20;
			sum += arr[i][4]*100;
			arr[i][5] = sum;
		}
        System.out.println("********************"+"本月考勤信息"+"***************");
		System.out.print("员工编号"+"\t"+"忘打卡"+"\t"+"迟到"+"\t"+"早退"+"\t"+"旷工"+"\t"+"总罚款（单位元）");
		for (int i = 0; i < arr.length; i++) {
			System.out.println();
			for (int j = 0; j < arr[i].length; j++) {
				System.out.print(arr[i][j]+"\t");
			}
		}
		
		
	}
}
